home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7647 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.arch.arithmetic,comp.lang.c,comp.lang.c++
  4. Subject: Re: Access carry flag from C
  5. Date: Sat, 24 Feb 96 17:56:17 GMT
  6. Organization: none
  7. Message-ID: <825184577snz@genesis.demon.co.uk>
  8. References: <Dn1C9z.DGv.0.net@indra.com> <31298D20.41C6@bazis.nl> <ARTHUR.96Feb20143404@gold.Smallworld.co.uk> <TANMOY.96Feb20101110@qcd.lanl.gov> <4gii0o$38k@sun001.spd.dsccc.com>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4gii0o$38k@sun001.spd.dsccc.com>
  15.            jmccarty@spd.dsccc.com "Mike McCarty" writes:
  16.  
  17. >If I recall the first post properly, no mention was made of "int" types,
  18. >but rather of fixed-point types. Not all fixed-point numeration systems
  19. >represent integers.
  20.  
  21. They do when we are constrained to numeration systems that can be
  22. supported directly by C types.
  23.  
  24. You can code portable tests for overflow on integer addition/subtraction
  25. so long as you know the types of the operands. Making the tests efficient
  26. is another matter.
  27.  
  28. -- 
  29. -----------------------------------------
  30. Lawrence Kirby | fred@genesis.demon.co.uk
  31. Wilts, England | 70734.126@compuserve.com
  32. -----------------------------------------
  33.